export default {
	namespaced:true, //当前模块是否使用命名空间
	state: {
		token: '',
		openId: '',
		unionId: '',
		sessionKey: '',
		token: ''
	},
	mutations: {
		setAdminUser(state,data) {
			for (let keyD of Object.keys(data)) {
				for (let keyS of Object.keys(state)) {
					if (keyS == keyD) {
						// console.log('keyS keyD', keyS, keyD);
						state[keyS] = data[keyD]
						// console.log('state[keyS] ', state[keyS]);
					}
				}
			}
		},
	},
	getters: {

	},
	actions: {
		// 分发注册全局事件
	}
}
